package com.cn.service.server.PartsManagement;

import com.cn.bean.pojo.bc.User;
import com.cn.bean.vo.PartsManagement.BusinessDepartmentType;
import com.cn.bean.vo.bc.UserDepartments;
import com.cn.config.config.Result;
import com.cn.mapper.dao.db5.PartsManagement.BusinessDepartmentTypeDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusinessDepartmentTypeService {
    List<BusinessDepartmentType> selectBusinessDepartmentType(@Param("name") String name, @Param("page") int page, @Param("limit") int limit);

    List<UserDepartments> selectDepartments();

    List<User> selectUserDepartmentsBusinessDepartmentType(@Param("id") int id);

    Result addBusinessDepartmentType(@Param("departmentID") int departmentID, @Param("businessTypeID") int businessTypeID, @Param("description") String description, @Param("status") int status, @Param("organizationType") int organizationType, List<BusinessDepartmentType> businessDepartmentTypeList);

    Result deleteBusinessDepartmentTypeMapping(List<BusinessDepartmentType> idList);

    Result updateBusinessDepartmentTypeMapping(@Param("ID")int ID,@Param("departmentID")int departmentID,@Param("businessTypeID")int businessTypeID,@Param("description")String description,@Param("status")int status,@Param("organizationType")int organizationType,List<BusinessDepartmentType> businessDepartmentTypeList);

}
